;;; Segment .text (00401000)

;; main: 00401000
main proc
	push	ebp
	mov	ebp,esp
	sub	esp,28h
	mov	dword ptr [ebp-28h],0h
	fld1
	fstp	double ptr [ebp-20h]
	mov	dword ptr [ebp-18h],0Ah
	fld	double ptr [4020F8h]
	fstp	double ptr [ebp-10h]
	lea	eax,[ebp-18h]
	push	eax
	lea	ecx,[ebp-28h]
	push	ecx
	call	4010D0h
	add	esp,8h
	mov	[ebp-4h],eax
	mov	dword ptr [ebp-28h],64h
	mov	edx,[ebp-4h]
	mov	dword ptr [edx],5h
	mov	eax,[ebp-4h]
	fld	double ptr [4020F0h]
	fstp	double ptr [eax+8h]
	sub	esp,8h
	fld	double ptr [ebp-10h]
	fstp	double ptr [esp]
	mov	ecx,[ebp-18h]
	push	ecx
	sub	esp,8h
	fld	double ptr [ebp-20h]
	fstp	double ptr [esp]
	mov	edx,[ebp-28h]
	push	edx
	push	4020C8h
	call	dword ptr [4020A0h]
	add	esp,1Ch
	lea	eax,[ebp-18h]
	mov	[403018h],eax
	mov	dword ptr [ebp-18h],2h
	fld	double ptr [4020E8h]
	fstp	double ptr [ebp-10h]
	mov	ecx,[403018h]
	mov	dword ptr [ecx],3h
	mov	edx,[403018h]
	fld	double ptr [4020E0h]
	fstp	double ptr [edx+8h]
	sub	esp,8h
	fld	double ptr [ebp-10h]
	fstp	double ptr [esp]
	mov	eax,[ebp-18h]
	push	eax
	push	4020D8h
	call	dword ptr [4020A0h]
	add	esp,10h
	xor	eax,eax
	mov	esp,ebp
	pop	ebp
	ret
004010CD                                        CC CC CC              ...

;; GetMin: 004010D0
;;   Called from:
;;     0040102A (in main)
GetMin proc
	push	ebp
	mov	ebp,esp
	mov	eax,[ebp+8h]
	mov	ecx,[ebp+0Ch]
	mov	edx,[eax]
	cmp	edx,[ecx]
	jge	4010E4h

l004010DF:
	mov	eax,[ebp+8h]
	jmp	401112h

l004010E4:
	mov	eax,[ebp+8h]
	mov	ecx,[ebp+0Ch]
	mov	edx,[eax]
	cmp	edx,[ecx]
	jge	4010F5h

l004010F0:
	mov	eax,[ebp+0Ch]
	jmp	401112h

l004010F5:
	mov	eax,[ebp+8h]
	mov	ecx,[ebp+0Ch]
	fld	double ptr [ecx+8h]
	fcomp	double ptr [eax+8h]
	fstsw	ax
	test	ah,41h
	jnz	40110Fh

l00401108:
	mov	eax,[ebp+8h]
	jmp	401112h
0040110D                                        EB 03                 ..

l0040110F:
	mov	eax,[ebp+0Ch]

l00401112:
	pop	ebp
	ret
00401114             CC CC CC CC CC CC CC CC CC CC CC CC     ............
00401120 68 F5 14 40 00 E8 95 03 00 00 A1 44 30 40 00 C7 h..@.......D0@..
00401130 04 24 30 30 40 00 FF 35 40 30 40 00 A3 30 30 40 .$00@..5@0@..00@
00401140 00 68 20 30 40 00 68 24 30 40 00 68 1C 30 40 00 .h 0@.h$0@.h.0@.
00401150 FF 15 94 20 40 00 83 C4 14 85 C0 A3 2C 30 40 00 ... @.......,0@.
00401160 7D 08 6A 08 E8 AB 02 00 00 59 C3 6A 10 68 68 21 }.j......Y.j.hh!
00401170 40 00 E8 F1 04 00 00 33 DB 89 5D FC 64 A1 18 00 @......3..].d...
00401180 00 00 8B 70 04 89 5D E4 BF 7C 33 40 00 53 56 57 ...p..]..|3@.SVW
00401190 FF 15 24 20 40 00 3B C3 74 19 3B C6 75 08 33 F6 ..$ @.;.t.;.u.3.
004011A0 46 89 75 E4 EB 10 68 E8 03 00 00 FF 15 28 20 40 F.u...h......( @
004011B0 00 EB DA 33 F6 46 A1 78 33 40 00 3B C6 75 0A 6A ...3.F.x3@.;.u.j
004011C0 1F E8 4E 02 00 00 59 EB 3B A1 78 33 40 00 85 C0 ..N...Y.;.x3@...
004011D0 75 2C 89 35 78 33 40 00 68 C0 20 40 00 68 B4 20 u,.5x3@.h. @.h. 
004011E0 40 00 E8 7B 04 00 00 59 59 85 C0 74 17 C7 45 FC @..{...YY..t..E.
004011F0 FE FF FF FF B8 FF 00 00 00 E9 DD 00 00 00 89 35 ...............5
00401200 38 30 40 00 A1 78 33 40 00 3B C6 75 1B 68 B0 20 80@..x3@.;.u.h. 
00401210 40 00 68 A8 20 40 00 E8 40 04 00 00 59 59 C7 05 @.h. @..@...YY..
00401220 78 33 40 00 02 00 00 00 39 5D E4 75 08 53 57 FF x3@.....9].u.SW.
00401230 15 2C 20 40 00 39 1D 88 33 40 00 74 19 68 88 33 ., @.9..3@.t.h.3
00401240 40 00 E8 59 03 00 00 59 85 C0 74 0A 53 6A 02 53 @..Y...Y..t.Sj.S
00401250 FF 15 88 33 40 00 A1 20 30 40 00 8B 0D 80 20 40 ...3@.. 0@.... @
00401260 00 89 01 FF 35 20 30 40 00 FF 35 24 30 40 00 FF ....5 0@..5$0@..
00401270 35 1C 30 40 00 E8 86 FD FF FF 83 C4 0C A3 34 30 5.0@..........40
00401280 40 00 39 1D 28 30 40 00 75 37 50 FF 15 84 20 40 @.9.(0@.u7P... @
00401290 00 8B 45 EC 8B 08 8B 09 89 4D E0 50 51 E8 78 02 ..E......M.PQ.x.
004012A0 00 00 59 59 C3 8B 65 E8 8B 45 E0 A3 34 30 40 00 ..YY..e..E..40@.
004012B0 33 DB 39 1D 28 30 40 00 75 07 50 FF 15 8C 20 40 3.9.(0@.u.P... @
004012C0 00 39 1D 38 30 40 00 75 06 FF 15 90 20 40 00 C7 .9.80@.u.... @..
004012D0 45 FC FE FF FF FF A1 34 30 40 00 E8 CD 03 00 00 E......40@......
004012E0 C3 66 81 3D 00 00 40 00 4D 5A 74 04 33 C0 EB 4D .f.=..@.MZt.3..M
004012F0 A1 3C 00 40 00 8D 80 00 00 40 00 81 38 50 45 00 .<.@.....@..8PE.
00401300 00 75 E9 0F B7 48 18 81 F9 0B 01 00 00 74 1B 81 .u...H.......t..
00401310 F9 0B 02 00 00 75 D5 83 B8 84 00 00 00 0E 76 CC .....u........v.
00401320 33 C9 39 88 F8 00 00 00 EB 0E 83 78 74 0E 76 BC 3.9........xt.v.
00401330 33 C9 39 88 E8 00 00 00 0F 95 C1 8B C1 6A 01 A3 3.9..........j..
00401340 28 30 40 00 FF 15 40 20 40 00 6A FF FF 15 3C 20 (0@...@ @.j...< 
00401350 40 00 59 59 A3 80 33 40 00 A3 84 33 40 00 FF 15 @.YY..3@...3@...
00401360 38 20 40 00 8B 0D 4C 30 40 00 89 08 FF 15 4C 20 8 @...L0@.....L 
00401370 40 00 8B 0D 48 30 40 00 89 08 A1 6C 20 40 00 8B @...H0@....l @..
00401380 00 A3 74 33 40 00 E8 46 01 00 00 E8 7D 03 00 00 ..t3@..F....}...
00401390 83 3D 0C 30 40 00 00 75 0C 68 0D 17 40 00 FF 15 .=.0@..u.h..@...
004013A0 70 20 40 00 59 E8 3A 03 00 00 83 3D 08 30 40 00 p @.Y.:....=.0@.
004013B0 FF 75 09 6A FF FF 15 74 20 40 00 59 33 C0 C3 E8 .u.j...t @.Y3...
004013C0 4C 03 00 00 E9 A2 FD FF FF 8B 44 24 04 8B 00 81 L.........D$....
004013D0 38 63 73 6D E0 75 2A 83 78 10 03 75 24 8B 40 14 8csm.u*.x..u$.@.
004013E0 3D 20 05 93 19 74 15 3D 21 05 93 19 74 0E 3D 22 = ...t.=!...t.="
004013F0 05 93 19 74 07 3D 00 40 99 01 75 05 E8 A3 03 00 ...t.=.@..u.....
00401400 00 33 C0 C2 04 00 68 C9 13 40 00 FF 15 20 20 40 .3....h..@...  @
00401410 00 33 C0 C3 FF 25 98 20 40 00 6A 14 68 88 21 40 .3...%. @.j.h.!@
00401420 00 E8 42 02 00 00 FF 35 84 33 40 00 8B 35 58 20 ..B....5.3@..5X 
00401430 40 00 FF D6 59 89 45 E4 83 F8 FF 75 0C FF 75 08 @...Y.E....u..u.
00401440 FF 15 54 20 40 00 59 EB 67 6A 08 E8 66 03 00 00 ..T @.Y.gj..f...
00401450 59 83 65 FC 00 FF 35 84 33 40 00 FF D6 89 45 E4 Y.e...5.3@....E.
00401460 FF 35 80 33 40 00 FF D6 59 59 89 45 E0 8D 45 E0 .5.3@...YY.E..E.
00401470 50 8D 45 E4 50 FF 75 08 8B 35 3C 20 40 00 FF D6 P.E.P.u..5< @...
00401480 59 50 E8 29 03 00 00 89 45 DC FF 75 E4 FF D6 A3 YP.)....E..u....
00401490 84 33 40 00 FF 75 E0 FF D6 83 C4 14 A3 80 33 40 .3@..u........3@
004014A0 00 C7 45 FC FE FF FF FF E8 09 00 00 00 8B 45 DC ..E...........E.
004014B0 E8 F8 01 00 00 C3 6A 08 E8 ED 02 00 00 59 C3 FF ......j......Y..
004014C0 74 24 04 E8 52 FF FF FF F7 D8 1B C0 F7 D8 59 48 t$..R.........YH
004014D0 C3 56 57 B8 58 21 40 00 BF 58 21 40 00 3B C7 8B .VW.X!@..X!@.;..
004014E0 F0 73 0F 8B 06 85 C0 74 02 FF D0 83 C6 04 3B F7 .s.....t......;.
004014F0 72 F1 5F 5E C3 56 57 B8 60 21 40 00 BF 60 21 40 r._^.VW.`!@..`!@
00401500 00 3B C7 8B F0 73 0F 8B 06 85 C0 74 02 FF D0 83 .;...s.....t....
00401510 C6 04 3B F7 72 F1 5F 5E C3 CC FF 25 88 20 40 00 ..;.r._^...%. @.
00401520 8B 4C 24 04 66 81 39 4D 5A 74 03 33 C0 C3 8B 41 .L$.f.9MZt.3...A
00401530 3C 03 C1 81 38 50 45 00 00 75 F0 33 C9 66 81 78 <...8PE..u.3.f.x
00401540 18 0B 01 0F 94 C1 8B C1 C3 CC CC CC CC CC CC CC ................
00401550 8B 44 24 04 8B 48 3C 03 C8 0F B7 41 14 53 56 0F .D$..H<....A.SV.
00401560 B7 71 06 33 D2 85 F6 57 8D 44 08 18 76 1E 8B 7C .q.3...W.D..v..|
00401570 24 14 8B 48 0C 3B F9 72 09 8B 58 08 03 D9 3B FB $..H.;.r..X...;.
00401580 72 0C 83 C2 01 83 C0 28 3B D6 72 E6 33 C0 5F 5E r......(;.r.3._^
00401590 5B C3 CC CC CC CC CC CC CC CC CC CC CC CC CC CC [...............
004015A0 55 8B EC 6A FE 68 A8 21 40 00 68 C1 16 40 00 64 U..j.h.!@.h..@.d
004015B0 A1 00 00 00 00 50 83 EC 08 53 56 57 A1 10 30 40 .....P...SVW..0@
004015C0 00 31 45 F8 33 C5 50 8D 45 F0 64 A3 00 00 00 00 .1E.3.P.E.d.....
004015D0 89 65 E8 C7 45 FC 00 00 00 00 68 00 00 40 00 E8 .e..E.....h..@..
004015E0 3C FF FF FF 83 C4 04 85 C0 74 55 8B 45 08 2D 00 <........tU.E.-.
004015F0 00 40 00 50 68 00 00 40 00 E8 52 FF FF FF 83 C4 .@.Ph..@..R.....
00401600 08 85 C0 74 3B 8B 40 24 C1 E8 1F F7 D0 83 E0 01 ...t;.@$........
00401610 C7 45 FC FE FF FF FF 8B 4D F0 64 89 0D 00 00 00 .E......M.d.....
00401620 00 59 5F 5E 5B 8B E5 5D C3 8B 45 EC 8B 08 8B 01 .Y_^[..]..E.....
00401630 33 D2 3D 05 00 00 C0 0F 94 C2 8B C2 C3 8B 65 E8 3.=...........e.
00401640 C7 45 FC FE FF FF FF 33 C0 8B 4D F0 64 89 0D 00 .E.....3..M.d...
00401650 00 00 00 59 5F 5E 5B 8B E5 5D C3 CC FF 25 7C 20 ...Y_^[..]...%| 
00401660 40 00 FF 25 78 20 40 00 68 C1 16 40 00 64 FF 35 @..%x @.h..@.d.5
00401670 00 00 00 00 8B 44 24 10 89 6C 24 10 8D 6C 24 10 .....D$..l$..l$.
00401680 2B E0 53 56 57 A1 10 30 40 00 31 45 FC 33 C5 50 +.SVW..0@.1E.3.P
00401690 89 65 E8 FF 75 F8 8B 45 FC C7 45 FC FE FF FF FF .e..u..E..E.....
004016A0 89 45 F8 8D 45 F0 64 A3 00 00 00 00 C3 8B 4D F0 .E..E.d.......M.
004016B0 64 89 0D 00 00 00 00 59 5F 5F 5E 5B 8B E5 5D 51 d......Y__^[..]Q
004016C0 C3 FF 74 24 10 FF 74 24 10 FF 74 24 10 FF 74 24 ..t$..t$..t$..t$
004016D0 10 68 BC 17 40 00 68 10 30 40 00 E8 EC 00 00 00 .h..@.h.0@......
004016E0 83 C4 18 C3 56 68 00 00 03 00 68 00 00 01 00 33 ....Vh....h....3
004016F0 F6 56 E8 E1 00 00 00 83 C4 0C 85 C0 74 0D 56 56 .V..........t.VV
00401700 56 56 56 E8 CA 00 00 00 83 C4 14 5E C3 33 C0 C3 VVV........^.3..
00401710 55 8B EC 83 EC 10 A1 10 30 40 00 83 65 F8 00 83 U.......0@..e...
00401720 65 FC 00 53 57 BF 4E E6 40 BB 3B C7 BB 00 00 FF e..SW.N.@.;.....
00401730 FF 74 0D 85 C3 74 09 F7 D0 A3 14 30 40 00 EB 60 .t...t.....0@..`
00401740 56 8D 45 F8 50 FF 15 0C 20 40 00 8B 75 FC 33 75 V.E.P... @..u.3u
00401750 F8 FF 15 10 20 40 00 33 F0 FF 15 14 20 40 00 33 .... @.3.... @.3
00401760 F0 FF 15 18 20 40 00 33 F0 8D 45 F0 50 FF 15 1C .... @.3..E.P...
00401770 20 40 00 8B 45 F4 33 45 F0 33 F0 3B F7 75 07 BE  @..E.3E.3.;.u..
00401780 4F E6 40 BB EB 0B 85 F3 75 07 8B C6 C1 E0 10 0B O.@.....u.......
00401790 F0 89 35 10 30 40 00 F7 D6 89 35 14 30 40 00 5E ..5.0@....5.0@.^
004017A0 5F 5B C9 C3 FF 25 44 20 40 00 FF 25 48 20 40 00 _[...%D @..%H @.
004017B0 FF 25 9C 20 40 00 FF 25 50 20 40 00 3B 0D 10 30 .%. @..%P @.;..0
004017C0 40 00 75 02 F3 C3 E9 13 00 00 00 CC FF 25 5C 20 @.u..........%\ 
004017D0 40 00 FF 25 60 20 40 00 FF 25 64 20 40 00 55 8B @..%` @..%d @.U.
004017E0 EC 81 EC 28 03 00 00 A3 58 31 40 00 89 0D 54 31 ...(....X1@...T1
004017F0 40 00 89 15 50 31 40 00 89 1D 4C 31 40 00 89 35 @...P1@...L1@..5
00401800 48 31 40 00 89 3D 44 31 40 00 66 8C 15 70 31 40 H1@..=D1@.f..p1@
00401810 00 66 8C 0D 64 31 40 00 66 8C 1D 40 31 40 00 66 .f..d1@.f..@1@.f
00401820 8C 05 3C 31 40 00 66 8C 25 38 31 40 00 66 8C 2D ..<1@.f.%81@.f.-
00401830 34 31 40 00 9C 8F 05 68 31 40 00 8B 45 00 A3 5C 41@....h1@..E..\
00401840 31 40 00 8B 45 04 A3 60 31 40 00 8D 45 08 A3 6C 1@..E..`1@..E..l
00401850 31 40 00 8B 85 E0 FC FF FF C7 05 A8 30 40 00 01 1@..........0@..
00401860 00 01 00 A1 60 31 40 00 A3 5C 30 40 00 C7 05 50 ....`1@..\0@...P
00401870 30 40 00 09 04 00 C0 C7 05 54 30 40 00 01 00 00 0@.......T0@....
00401880 00 A1 10 30 40 00 89 85 D8 FC FF FF A1 14 30 40 ...0@.........0@
00401890 00 89 85 DC FC FF FF FF 15 30 20 40 00 A3 A0 30 .........0 @...0
004018A0 40 00 6A 01 E8 39 00 00 00 59 6A 00 FF 15 20 20 @.j..9...Yj...  
004018B0 40 00 68 00 21 40 00 FF 15 00 20 40 00 83 3D A0 @.h.!@.... @..=.
004018C0 30 40 00 00 75 08 6A 01 E8 15 00 00 00 59 68 09 0@..u.j......Yh.
004018D0 04 00 C0 FF 15 04 20 40 00 50 FF 15 08 20 40 00 ...... @.P... @.
004018E0 C9 C3 FF 25 68 20 40 00                         ...%h @.       
